
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Add new FAQ</title>
    </head>
    <body>
        <%
            if (request.getAttribute("msg") != null) {
        %>
        <font color="green" > <%= request.getAttribute("msg")%> </font>
        <%
            }
            if (request.getAttribute("error") != null) {
        %>
        <font color="red" > <%= request.getAttribute("error")%> </font>
        <%
            }
        %>
        <br>
        <form action="createFAQ" method="get">       
            <table>
                <tr>
                    <td></td>
                    <td>  Add new FAQ</td>
                </tr>
                <tr>
                    <td> Question</td>
                    <td> <input type="text" name="question" value=""><font color="red">*</font></td>
                </tr>
                <tr>
                    <td> Answer</td>
                    <td>  <input type="text" name="answer" value=""></td>
                </tr>                             
                <tr>
                    <td></td>
                    <td> <input type="submit" value="Create"></td>
                </tr>
            </table>
        </form>
    </body>
</html>
